package com.pluszg.nutrition.common.req;


import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@Setter
@ToString
@NoArgsConstructor
public class PageBean implements Serializable {

    /**
     * 页码
     */

    private Integer pageNumber;

    /**
     * 页大小
     */

    private Integer pageSize;

    /**
     * 是否分页，默认分页
     */
//    @JsonProperty(access = WRITE_ONLY)
    private boolean paginate = true;

    public PageBean(int pageNumber, int pageSize) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
    }
}
